﻿import { Component } from '@angular/core';
import { HubConnection } from '@aspnet/signalr-client'
@Component({
    selector: 'counter',
    templateUrl: './counter.component.html'
})
export class CounterComponent {
    public currentCount = 0;
    public message: string;
    private hubConnection: HubConnection;
    private isConnected: boolean = false;
    public messages: Array<{ message: string, id: string }> = [];
    constructor() {
        this.messages = new Array<{ message: string, id: string }>();
    }

    public incrementCounter() {
        this.currentCount++;
    }
     
}
